using System;
using System.Windows.Forms;
using NAnt.Core;
using NAnt.Core.Attributes;

namespace Deployment.CustomTasks.Tasks
{
	[TaskName("messagebox")]
	public class MessageBoxTask : Task
	{
		private string message;

		[TaskAttribute("message", Required = true)]
		public string Message
		{
			get { return message; }
			set { message = value; }
		}

		protected override void ExecuteTask()
		{
			MessageBox.Show(message);
		}
	}
}